﻿<%@ Page Language="C#" Theme="skin_control" AutoEventWireup="true" CodeFile="StrategicPlanAdd.aspx.cs"
    Inherits="StrategicPlan_StrategicPlanAdd" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>战略计划添加</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
    <script src="../Js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        <!--
        function department(str) {
            window.open('../WebCommon/Department.aspx?SID=' + str, '', 'width=700,height=580,top=200, left=300');
        }
        -->   
       
    </script>
    <script type="text/javascript" language="javascript">
        function userinfo(str) {
            window.open('../WebCommon/UserInfo.aspx?SID=' + str, '', 'width=700,height=580,top=150, left=300');
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True">
    </asp:ScriptManager>
    <div>
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
                <td class="firstbjcolor" colspan="8" style="height: 14px;">
                    <span class="currentHere">当前位置:战略计划管理-&gt;添加战略计划</span>
                </td>
            </tr>
            <tr>
                <td style="height: 1; width: 100%;">
                </td>
            </tr>
            <tr>
                <td colspan="8" style="background-image: url(../images/secondRow.gif); background-repeat: repeat-x;
                    height: 30px;" class="tdControlRow">
                    战略周期:<asp:DropDownList ID="drpStrategicDate" runat="server" AutoPostBack="True" SkinID="dropdownlistSkin"
                        OnSelectedIndexChanged="drpYear_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:CheckBox ID="ckbAllSelect" runat="server" Text="全选" AutoPostBack="True" SkinID="checkboxSkin"
                        Height="20px" OnCheckedChanged="ckbAllSelect_CheckedChanged" />
                    <asp:Button ID="btnSave" runat="server" Text="保存" Width="60px" OnClick="btnSave_Click" />
                    &nbsp;<asp:Button ID="btnImport" runat="server" OnClick="btnImport_Click" Text="导入"
                        Width="60px" />
                </td>
            </tr>
            <tr>
                <td colspan="8">
                    <div style="height: 18px; width: 98.7%" id="Div1">
                        <table cellpadding="0" cellspacing="1" style="background-color: #d0d0ce;" border="0"
                            width="100%">
                            <tr style="background-color: #ffffff;">
                                <td align="center" class="PlanModifyTableHeader" style="width: 5%">
                                    选择
                                </td>
                                <td align="center" class="PlanModifyTableHeader" style="width: 5%">
                                    计划编号
                                </td>
                                <td class="PlanModifyTableHeader" style="width: 30%" align="center">
                                    计划内容
                                </td>
                                <td class="PlanModifyTableHeader" style="width: 10%" valign="middle" align="center">
                                    起始时间
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 10%">
                                    完成时间
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 10%">
                                    负责部门
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 10%">
                                    责任人
                                </td>
                                <td class="PlanModifyTableHeader" valign="middle" align="center" style="width: 10%">
                                    所属分类
                                </td>
                                <td class="PlanModifyTableHeader" style="width: 10%" valign="middle" align="center">
                                    操作
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="8">
                    <div style="overflow-y: scroll; height: 450px; width: 100%" id="dvBody">
                        <asp:GridView ID="gdvStrategicPlan" runat="server" AutoGenerateColumns="False" Width="100%"
                            DataKeyNames="StrategicPlanId,CreateDate" SkinID="gridviewSkin" OnRowDataBound="gdvStrategicPlan_RowDataBound"
                            ShowHeader="False">
                            <Columns>
                                <asp:TemplateField HeaderText="选择">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="ckbSelect" runat="server" />
                                    </ItemTemplate>
                                    <HeaderStyle Width="5%" />
                                    <ItemStyle Width="5%" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="StrategicPlanSortId" HeaderText="计划编号">
                                    <HeaderStyle Width="5%" />
                                    <ItemStyle Width="5%" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="计划内容" DataField="WorkItem">
                                    <HeaderStyle Width="30%" />
                                    <ItemStyle Width="30%" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="起始时间" DataField="StartTime" DataFormatString="{0:yyyy-MM-dd}">
                                    <HeaderStyle Width="10%" />
                                    <ItemStyle Width="10%" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="完成时间" DataField="CompleteTime" DataFormatString="{0:yyyy-MM-dd}">
                                    <HeaderStyle Width="10%" />
                                    <ItemStyle Width="10%" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="负责部门" DataField="MasterDepartment">
                                    <HeaderStyle Width="10%" />
                                    <ItemStyle Width="10%" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="责任人" DataField="MasterPeople">
                                    <HeaderStyle Width="10%" />
                                    <ItemStyle Width="10%" />
                                </asp:BoundField>
                                <asp:BoundField HeaderText="所属分类" DataField="StrategicCategory">
                                    <HeaderStyle Width="10%" />
                                    <ItemStyle Width="10%" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="操作">
                                    <ItemTemplate>
                                        <asp:Button ID="btnDel" runat="server" OnClick="btnDel_Click" Text="删除" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="StrategicPlanId" HeaderText="战略计划id" Visible="False" />
                            </Columns>
                        </asp:GridView>
                        <table cellpadding="0" cellspacing="1" style="background-color: #d0d0ce;" border="0"
                            width="100%">
                            <tr style="height: 50px; background-color: #ffffff;">
                                <td align="center" style="width: 5%; height: 50px;" valign="middle">
                                </td>
                                <td align="center" style="width: 5%; height: 50px;" valign="middle">
                                    <asp:TextBox ID="txtStrategicPlanSortId" runat="server" Width="80%"></asp:TextBox>
                                </td>
                                <td style="width: 30%; height: 50px;" valign="middle" align="center">
                                    <asp:TextBox ID="txtPlanContent" runat="server" Width="90%" TextMode="MultiLine"></asp:TextBox>
                                </td>
                                <td style="width: 10%; height: 50px;" valign="middle" align="center">
                                    <asp:TextBox ID="txtStartDay" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                                        Width="90%"></asp:TextBox>
                                </td>
                                <td style="width: 10%; height: 50px;" valign="middle" align="center">
                                    <asp:TextBox ID="txtEndDay" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" runat="server"
                                        Width="90%"></asp:TextBox>
                                </td>
                                <td align="center" style="width: 10%; height: 50px;" valign="middle">
                                    <asp:DropDownList ID="drpDepartment" runat="server" Width="90%">
                                    </asp:DropDownList>
                                </td>
                                <td align="center" style="width: 10%; height: 50px">
                                    <input id="txtMasterPeople" type="text" runat="server" style="width: 70%;" readonly="readOnly" /><a
                                        href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"><img alt="" src="../images/addpages.jpg"
                                            border="0" /></a>
                                </td>
                                <td align="center" style="width: 10%; height: 50px">
                                    <asp:DropDownList ID="drpStrategyCategory" runat="server">
                                    </asp:DropDownList>
                                </td>
                                <td align="center" style="width: 10%; height: 50px">
                                    <asp:Button ID="btnAdd" runat="server" Width="50%" Text="添加" OnClick="btnAdd_Click"
                                        EnableViewState="False" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="8">
                </td>
            </tr>
            <tr>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
